.class Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;
.super Ljava/lang/Object;
.source "BGMVolumeDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/esfile/screen/recorder/videos/edit/activities/music/a;-><init>(Landroid/content/Context;Ljava/lang/String;FLjava/util/List;ZILes/cd$j;Lcom/esfile/screen/recorder/videos/edit/activities/music/a$m;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->q(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)V

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->u(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)Landroid/util/Pair;

    move-result-object p1

    iget-object p1, p1, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast p1, Ljava/lang/Integer;

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {p2}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->u(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)Landroid/util/Pair;

    move-result-object p2

    iget-object p2, p2, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast p2, Ljava/lang/Integer;

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    sub-int/2addr p1, p2

    if-gtz p1, :cond_0

    .line 3
    sget p1, Les/z4;->durec_music_duration_limit_prompt:I

    invoke-static {p1}, Les/ec;->a(I)V

    return-void

    .line 4
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->c(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)Z

    move-result p1

    const/high16 p2, 0x42c80000    # 100.0f

    if-eqz p1, :cond_1

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->e(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)Landroid/widget/SeekBar;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/SeekBar;->getProgress()I

    move-result v0

    int-to-float v0, v0

    div-float/2addr v0, p2

    invoke-static {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->a(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;F)F

    .line 6
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->g(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)Landroid/widget/SeekBar;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/SeekBar;->getProgress()I

    move-result v0

    int-to-float v0, v0

    div-float/2addr v0, p2

    invoke-static {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->b(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;F)F

    goto :goto_0

    .line 7
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->g(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)Landroid/widget/SeekBar;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/SeekBar;->getProgress()I

    move-result v0

    int-to-float v0, v0

    div-float/2addr v0, p2

    invoke-static {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->b(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;F)F

    .line 8
    :goto_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->h(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)Lcom/esfile/screen/recorder/videos/edit/activities/music/a$m;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 9
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->h(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)Lcom/esfile/screen/recorder/videos/edit/activities/music/a$m;

    move-result-object p1

    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {p2}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->d(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)F

    move-result p2

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->f(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)F

    move-result v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->r(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)Z

    move-result v1

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-static {v2}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a;->u(Lcom/esfile/screen/recorder/videos/edit/activities/music/a;)Landroid/util/Pair;

    move-result-object v2

    invoke-interface {p1, p2, v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$m;->a(FFZLandroid/util/Pair;)V

    .line 10
    :cond_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/music/a$e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/music/a;

    invoke-virtual {p1}, Landroid/app/Dialog;->dismiss()V

    return-void
.end method
